

local mt = ac.skill['流星雨']
mt.temp = '攻击触发'
mt.cool = 10
mt.model1 = [[Abilities\Spells\NightElf\Starfall\StarfallTarget.mdl]]

function mt:on_run(self,hero,target)
    local damage = 1000 + hero:get('敏捷')*self.data2
    local point = target:get_point()
    for a=1,12 do
        local p = point:random(200,a*20)
        p:add_effect(self.model1):remove()
    end
    ac.wait(1000,function()
        hero:aoe_damage(point,200,damage)
    end)
end
